// component/footer/footer.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    route: {
      type: 'String',
      value: ''
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    tapHome:function(){
      if(this.data.route=='home'){
        return
      }else{
        wx.switchTab({
          url: '/pages/index/home/index',
        })
      }
    },
    tapFianacial: function () {
      if (this.data.route == 'finanacial') {
        return
      } else {
        wx.switchTab({
          url: '/pages/financial/financial/financial',
        })
      }
    },
    tapFound: function () {
      if (this.data.route == 'found') {
        return
      } else {
        wx.switchTab({
          url: '/pages/found/index/found',
        })
      }
    },
    tapMy: function () {
      if (this.data.route == 'my') {
        return
      } else {
        wx.switchTab({
          url: '/pages/user/my/index',
        })
      }
    },
  }
})
